<html>
<head>
    <meta charset="utf-8">
    <title>支付成功</title>
<#assign base=request.contextPath  />
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="${base}/backstage/layui/css/layui.css" media="all">

</head>
<body>
<div style="text-align: center">
    <i class="layui-icon layui-icon-ok" style="font-size: 250px;  color: #4b945f;"></i></br>
<h3 >支付成功。
    <span id="Time" style="color: red">10 </span>
    <span>秒自动进入管理页面!&nbsp;&nbsp;</span>
    <a href="${base}/admin/user/user.html" style="color: #0c9076">或直接点击进入管理页面</a>
</h3>
</div>

<script src="${base}/backstage/layui/layui.js" charset="utf-8"></script>
<script src="${base}/backstage/js/jquery.min.js"></script>
<script>

    //使用匿名函数方法
    function countDown(){
        var time = document.getElementById("Time");
        //alert(time.innerHTML);
        //获取到id为time标签中的内容，现进行判断
        if(time.innerHTML == 0){
            //等于0时清除计时
            window.location.href="http://localhost/admin/user/user.html";
        }else{
            time.innerHTML = time.innerHTML-1;
        }
    }
    //1000毫秒调用一次
    window.setInterval("countDown()",1000);

    // setTimeout(function(){
    //     window.location.href = "http://localhost/user/index.html"
    // },500);
</script>
</body>
</html>